home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / drifting.swf / scripts / DefineButton2_221 / BUTTONCONDACTION on(release, keyPress Space).as
Encoding:
Text File  |  2005-08-23  |  410 b   |  18 lines

  1. on(release, keyPress "<Space>"){
  2.    _root.resultsPanel_mc._visible = false;
  3.    if(_root.leagueGame)
  4.    {
  5.       _root.gotoAndPlay("reset_game_league");
  6.    }
  7.    else
  8.    {
  9.       _root.gotoAndPlay("reset_game");
  10.    }
  11.    trace("ready to go is " + _root.readyToGo);
  12.    if(_root.readyToGo and !_root.donutChallenge)
  13.    {
  14.       _root.spaceToStart = false;
  15.       _root.lights_mc.gotoAndPlay(2);
  16.    }
  17. }
  18.